// console.log({} instanceof Object);
// console.log([] instanceof Array);
// console.log(new Date instanceof Date);
// console.log(function(){} instanceof Function);
// console.log([] instanceof Object);//true


// console.log('hello' instanceof String);
// console.log(123 instanceof Number);


function Car(){
    this.run = 'running';
}
Bus.prototype = new Car()
function Bus(){
    this.name = 'BYD'
}

let bus = new Bus();


console.log(bus instanceof Object);
bus.__proto__.__proto__.__proto__ === Object.prototype 

// console.log(bus instanceof Car);
// bus.__proto__  === Bus.prototype.__proto__ ===Car.prototype

// console.log(bus instanceof Bus);
// bus.__proto__ = Car.prototype

